package com.soul.dj.util.http.json;

import android.text.TextUtils;

import java.io.Serializable;

public class Json<T> implements Serializable
{
	private static final long serialVersionUID = 2836276179409704025L;
	private String result_code = "" ; //是否成功
	private String result_message = "" ;         //需要提示的信息
	private String url = "" ;         //跳转的URL
	private T result = null ;       //返回的对象
	
	public boolean isSuccess()
	{
		return TextUtils.equals(result_code,"200") ;
	}

	public String getResult_code() {
		return result_code;
	}

	public void setResult_code(String result_code)
	{
		this.result_code = result_code;
	}

	public String getMsg() {
		return result_message;
	}

	public void setResult_message(String result_message) {
		this.result_message = result_message;
	}

	public String getUrl()
	{
		return url;
	}
	public void setUrl(String url)
	{
		this.url = url;
	}

	public T getObj() {
		return result;
	}

	public void setResult(T result) {
		this.result = result;
	}
}
